Optimal. Leaf size=92 \[ \frac{2^{m+\frac{1}{2}} \tan (e+f x) (c-c \sec (e+f x))^n F_1\left (n+\frac{1}{2};\frac{1}{2}-m,1;n+\frac{3}{2};\frac{1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right )}{f (2 n+1) \sqrt{\sec (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0936537, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3912, 136} \[ \frac{2^{m+\frac{1}{2}} \tan (e+f x) (c-c \sec (e+f x))^n F_1\left (n+\frac{1}{2};\frac{1}{2}-m,1;n+\frac{3}{2};\frac{1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right )}{f (2 n+1) \sqrt{\sec (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3912
Rule 136
Rubi steps
\begin{align*} \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx &=-\frac{(c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{(1+x)^{-\frac{1}{2}+m} (c-c x)^{-\frac{1}{2}+n}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt{1+\sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{2^{\frac{1}{2}+m} F_1\left (\frac{1}{2}+n;\frac{1}{2}-m,1;\frac{3}{2}+n;\frac{1}{2} (1-\sec (e+f x)),1-\sec (e+f x)\right ) (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt{1+\sec (e+f x)}}\\ \end{align*}
Mathematica [F] time = 1.0421, size = 0, normalized size = 0. \[ \int (1+\sec (e+f x))^m (c-c \sec (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.407, size = 0, normalized size = 0. \begin{align*} \int \left ( 1+\sec \left ( fx+e \right ) \right ) ^{m} \left ( c-c\sec \left ( fx+e \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}{\left (\sec \left (f x + e\right ) + 1\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (-c \sec \left (f x + e\right ) + c\right )}^{n}{\left (\sec \left (f x + e\right ) + 1\right )}^{m}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}{\left (\sec \left (f x + e\right ) + 1\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]